﻿Public Class ObjectEditor
    Private Sub RowDetailExpander_MouseDown(sender As Object, e As MouseButtonEventArgs)
        Dim toggle As FrameworkElement = CType(sender, FrameworkElement)
        Dim row As DataGridRow = WpfUtil.FindAncestorOfType(Of DataGridRow)(toggle)
        If row.DetailsVisibility = Visibility.Collapsed Then
            row.DetailsVisibility = Visibility.Visible
        Else
            row.DetailsVisibility = Visibility.Collapsed
        End If
    End Sub
End Class
